package com.zelma.consumer.controller;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


import com.zelma.consumer.feign.HouseFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.zelma.consumer.entity.RentbuyEntity;
import com.zelma.consumer.service.RentbuyService;
import com.zelma.common.utils.PageUtils;
import com.zelma.common.utils.R;



/**
 * 
 *
 * @author zelma
 * @email 1239115389@qq.com
 * @date 2022-01-06 17:00:48
 */
@RestController
@RequestMapping("consumer/rentbuy")
public class RentbuyController {
    @Autowired
    HouseFeign houseFeign;

    @GetMapping("/hostList")
    public List<RentbuyEntity> hostList(){
        return houseFeign.hostList();
    }

    @GetMapping("/cityList")
    public List<RentbuyEntity> cityList(){
        return houseFeign.cityList();
    }


}
